package com.ruyiadmin.springboot.service_layer.interfaces.system_interfaces;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruyiadmin.springboot.common_infrastructure.models.ActionResponseResult;
import com.ruyiadmin.springboot.common_infrastructure.models.QueryResponseResult;
import com.ruyiadmin.springboot.entity_data_model.data_transformation_model.system_model.CodeGeneratorDTO;
import com.ruyiadmin.springboot.entity_data_model.data_transformation_model.system_model.SchemaInfoDTO;

import java.io.IOException;

/**
 * <p>
 * 代码生成器 服务类
 * </p>
 *
 * @author RuYiAdmin
 * @since 2022-08-05
 */
public interface ICodeGeneratorService extends IService<SchemaInfoDTO> {
    /**
     * 查询数据库空间信息
     */
    QueryResponseResult<SchemaInfoDTO> querySchemaInfo();

    /**
     * 生成项目代码
     *
     * @param codeGenerator 模型DTO
     * @return ActionResult
     */
    ActionResponseResult codeGenerate(CodeGeneratorDTO codeGenerator) throws IOException;
}
